//
//  BkCustomNavBarView.m
//  bestkeep
//
//  Created by windCould on 16/11/9.
//  Copyright © 2016年 utouu. All rights reserved.
//

#import "BkCustomNavBarView.h"
#import "BKMyCommon.h"

@interface BkCustomNavBarView ()




@end



@implementation BkCustomNavBarView


-(instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        
        [self setUpViews];
        
    }
    
    return  self;
}

-(void)setUpViews{
    
    
    UILabel *title = [[UILabel alloc]initWithFrame:CGRectMake(SCREENWIDTH/2-50, 20, 100, 44)];
    title.text = BKMyLocalizedString(@"BKMyControllerTitle");
    self.titleLab = title;
    title.textAlignment = NSTextAlignmentCenter;
    title.font = [UIFont boldSystemFontOfSize:17];
    title.textColor = RGBCOLOR(51, 51, 51, 1);
    [self addSubview:title];
    
    //给导航控制器添加下边框；
    UIImageView *headerViewBorder = [[UIImageView alloc] init];
    headerViewBorder.backgroundColor = [UIColor lightGrayColor];
    [self addSubview:headerViewBorder];
    [headerViewBorder mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.mas_equalTo(0);
        make.right.mas_equalTo(0);
        make.bottom.mas_equalTo(0);
        make.height.mas_equalTo(0.5f);
    }];

}

-(void)setTitleStr:(NSString *)titleStr
{
    _titleStr = titleStr;
    self.titleLab.text = _titleStr;
}


-(void)setAlphValue:(CGFloat)alphValue
{
       
  
}


@end
